<!DOCTYPE html>
<html lang="en">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>健康上报系统</title>
    <link rel="stylesheet" type="text/css" href="../css/login.css">
</head>
<body>
<div class="content">
    <div class="logCon">
        <p th:text="${userExists}"></p>
        <form id="form1" modelattribute="person" action="/userPage/insertPerson" method="post">
            <div class="line"><span>姓       名:</span>
                <input class="bt_input" type="text" th:value="${name}" name="name" required="">
            </div>
            <div class="line"><span>学号/教职工号:</span>
                <input class="bt_input" type="text" th:value="${personId}" name="personId" required="" >
            </div>
            <div class="line"><span>密       码:</span>
                <input class="bt_input" type="text" th:value="${password}" name="password" required="">
            </div>
            <div class="line">
                <input class="bt_input" type="text" value="0" name="flag" hidden="hidden">
            </div>

            <input id="ticket" name="ticket" type="hidden" value="">
            <input id="randStr" name="randStr" type="hidden" value="">
            <button class="logingBut"
                    id="TencentCaptcha"
                    data-appid="1306253469"
                    data-cbfn="callback"
                    type="button"
                    onclick='submitFormWithCaptcha()'
            >注册</button>
            <!--<button type="submit" class="logingBut">注册</button><br>-->
        </form>
        <form action="/userPage/index" method="post">
            <button type="submit" class="logingBut">返回登录</button><br>
        </form>
    </div>
</div>

<script src="https://ssl.captcha.qq.com/TCaptcha.js"></script>
<script language="JavaScript" src="/js/captcha.js"></script>
</body>
</html>